// GBReBar.cpp : implementation file
//

#include "stdafx.h"
#include "../GameBrowser.h"
#include "GBReBar.h"


// CGBReBar

IMPLEMENT_DYNAMIC(CGBReBar, CReBar)

CGBReBar::CGBReBar()
{

}

CGBReBar::~CGBReBar()
{
}


BEGIN_MESSAGE_MAP(CGBReBar, CReBar)
	ON_WM_ERASEBKGND()
END_MESSAGE_MAP()



// CGBReBar message handlers



BOOL CGBReBar::OnEraseBkgnd(CDC* pDC)
{
	// TODO: Add your message handler code here and/or call default


	CBitmap   bBitmap; 
	bBitmap.LoadBitmap(IDB_BMP_BK1); 
	CDC   tempDC; 
	tempDC.CreateCompatibleDC(pDC); 
	tempDC.SelectObject(&bBitmap); 
	CRect   rect; 
	GetClientRect(&rect); 
	BITMAP   Bmp;   
	bBitmap.GetBitmap(&Bmp);   

	pDC->StretchBlt(0,0,rect.Width(),rect.Height(),&tempDC,0,0,Bmp.bmWidth,Bmp.bmHeight,SRCCOPY); 
	bBitmap.DeleteObject(); 
	return   TRUE;
	

	return TRUE;//CReBar::OnEraseBkgnd(pDC);
}
